package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 故我
 * Date: 2023-05-08
 * Time: 14:05
 */
public class Mouse implements IUse{
    //子类的重写方法权限必须大于等于父类的
    @Override
    public void openDevice() {
        System.out.println("打开鼠标!");
    }

    @Override
    public void closeDevice() {
        System.out.println("关闭鼠标!");
    }

    public void click(){
        System.out.println("鼠标点击!");
    }
}
